package com.imooc.o2o.entity;

import com.imooc.o2o.enums.StatusCode;

public class BaseResponse<T> {
	private Integer code;
	private String msg;
	private T data;
	public BaseResponse (){
		super ();
		}
	public BaseResponse (StatusCode statuscode) {
		this.code=statuscode.getCode ( ) ;
		this.msg=statuscode.getMsg ();
	}
	public BaseResponse (StatusCode statuscode, T data){
		this.code=statuscode.getCode () ;
		this.msg=statuscode. getMsg ();
		this.data = data;
	}
	public BaseResponse(Integer code,String msg,T data){
		super ( );
		this.code = code;
		this.msg= msg;
		this.data = data;
	}
	public BaseResponse (Integer code,String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	
}
